package com.xjy.system.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjy.system.domain.SysContractResult;
import com.xjy.common.core.mybatisplus.core.BaseMapperPlus;
import com.xjy.common.core.mybatisplus.cache.MybatisPlusRedisCache;
import com.xjy.system.domain.bo.SysContractResultQueryBo;
import com.xjy.system.domain.bo.SysMaterialUpdateQueryBo;
import com.xjy.system.domain.vo.SysContractResultVo;
import com.xjy.system.domain.vo.SysMaterialUpdateVo;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 合同结算项目信息Mapper接口
 *
 * @author xjy
 * @date 2022-02-08
 */
// 如使需切换数据源 请勿使用缓存 会造成数据不一致现象
public interface SysContractResultMapper extends BaseMapperPlus<SysContractResult> {

    Page<SysContractResultVo> queryResultByAto(Page<SysContractResultVo> page, @Param("query") SysContractResultQueryBo query);

	List<SysContractResultVo> queryPageList(@Param("bo") SysContractResultQueryBo bo);

	/**
	 * 新增
	 * @param insertData
	 * @return PO对象
	 */
	boolean save(@Param("insertData") SysContractResult insertData);

}
